﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000BD3 RID: 3027
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MonopolySelectOptionCsReq : IMessage<MonopolySelectOptionCsReq>, IMessage, IEquatable<MonopolySelectOptionCsReq>, IDeepCloneable<MonopolySelectOptionCsReq>, IBufferMessage
	{
		// Token: 0x1700261C RID: 9756
		// (get) Token: 0x0600875B RID: 34651 RVA: 0x00167731 File Offset: 0x00165931
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MonopolySelectOptionCsReq> Parser
		{
			get
			{
				return MonopolySelectOptionCsReq._parser;
			}
		}

		// Token: 0x1700261D RID: 9757
		// (get) Token: 0x0600875C RID: 34652 RVA: 0x00167738 File Offset: 0x00165938
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MonopolySelectOptionCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700261E RID: 9758
		// (get) Token: 0x0600875D RID: 34653 RVA: 0x0016774A File Offset: 0x0016594A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MonopolySelectOptionCsReq.Descriptor;
			}
		}

		// Token: 0x0600875E RID: 34654 RVA: 0x00167751 File Offset: 0x00165951
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonopolySelectOptionCsReq()
		{
		}

		// Token: 0x0600875F RID: 34655 RVA: 0x00167759 File Offset: 0x00165959
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonopolySelectOptionCsReq(MonopolySelectOptionCsReq other) : this()
		{
			this.eventId_ = other.eventId_;
			this.optionId_ = other.optionId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06008760 RID: 34656 RVA: 0x0016778A File Offset: 0x0016598A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonopolySelectOptionCsReq Clone()
		{
			return new MonopolySelectOptionCsReq(this);
		}

		// Token: 0x1700261F RID: 9759
		// (get) Token: 0x06008761 RID: 34657 RVA: 0x00167792 File Offset: 0x00165992
		// (set) Token: 0x06008762 RID: 34658 RVA: 0x0016779A File Offset: 0x0016599A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EventId
		{
			get
			{
				return this.eventId_;
			}
			set
			{
				this.eventId_ = value;
			}
		}

		// Token: 0x17002620 RID: 9760
		// (get) Token: 0x06008763 RID: 34659 RVA: 0x001677A3 File Offset: 0x001659A3
		// (set) Token: 0x06008764 RID: 34660 RVA: 0x001677AB File Offset: 0x001659AB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint OptionId
		{
			get
			{
				return this.optionId_;
			}
			set
			{
				this.optionId_ = value;
			}
		}

		// Token: 0x06008765 RID: 34661 RVA: 0x001677B4 File Offset: 0x001659B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MonopolySelectOptionCsReq);
		}

		// Token: 0x06008766 RID: 34662 RVA: 0x001677C2 File Offset: 0x001659C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MonopolySelectOptionCsReq other)
		{
			return other != null && (other == this || (this.EventId == other.EventId && this.OptionId == other.OptionId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008767 RID: 34663 RVA: 0x00167800 File Offset: 0x00165A00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.EventId != 0U)
			{
				num ^= this.EventId.GetHashCode();
			}
			if (this.OptionId != 0U)
			{
				num ^= this.OptionId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008768 RID: 34664 RVA: 0x00167858 File Offset: 0x00165A58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008769 RID: 34665 RVA: 0x00167860 File Offset: 0x00165A60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600876A RID: 34666 RVA: 0x0016786C File Offset: 0x00165A6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.OptionId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.OptionId);
			}
			if (this.EventId != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.EventId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600876B RID: 34667 RVA: 0x001678C8 File Offset: 0x00165AC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.EventId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EventId);
			}
			if (this.OptionId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.OptionId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600876C RID: 34668 RVA: 0x00167920 File Offset: 0x00165B20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MonopolySelectOptionCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.EventId != 0U)
			{
				this.EventId = other.EventId;
			}
			if (other.OptionId != 0U)
			{
				this.OptionId = other.OptionId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600876D RID: 34669 RVA: 0x00167970 File Offset: 0x00165B70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600876E RID: 34670 RVA: 0x0016797C File Offset: 0x00165B7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 120U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.EventId = input.ReadUInt32();
					}
				}
				else
				{
					this.OptionId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003382 RID: 13186
		private static readonly MessageParser<MonopolySelectOptionCsReq> _parser = new MessageParser<MonopolySelectOptionCsReq>(() => new MonopolySelectOptionCsReq());

		// Token: 0x04003383 RID: 13187
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003384 RID: 13188
		public const int EventIdFieldNumber = 15;

		// Token: 0x04003385 RID: 13189
		private uint eventId_;

		// Token: 0x04003386 RID: 13190
		public const int OptionIdFieldNumber = 5;

		// Token: 0x04003387 RID: 13191
		private uint optionId_;
	}
}
